/**
 * Created by John on 2016/7/25.
 */
var mongo = new Mongo('localhost');
var db = mongo.getDB('BeginningMongoDB');

db.runCommand({profile: 2, slowms: 500});

db.getCollection('word_stats').find();
var profile = db.system.profile.find();

profile.forEach(function (item) {
    printjson(item);
});